import BlogBody from "./BlogBody/BlogBody";
import MyEditor from "./MyEditor/MyEditor";
import CodeModule from "./BlogBody/CodeModule/CodeModule";
import MainModule from "./BlogBody/MainModule/MainModule";

let routes = [
    // 主页
    {
        path: '/',
        component: BlogBody,
        exact:true,
        children:[
            {
                path: '/',
                component: MainModule,
                exact:true
            },
            {
                path: '/life',
                component: MyEditor,
                exact:false
            },
            {
                path: '/code',
                component: CodeModule,
                exact:false
            },
        ]
    },

    // 博客编辑器
    {
        path: '/write',
        component: MyEditor,
        exact:true
    },
]

export default routes